﻿using PropertyManagment.entity;
using PropertyManagment.entity.dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace PropertyManagment.service {
    public interface SysUserService : IService<SysUser> {
        SysUser getByUsername(string username);
        string getUserAuthorityInfo(long userId);
        void clearUserAuthorityInfo(string username);
        void clearUserAuthorityInfoByRoleId(long roleId);
        void clearUserAuthorityInfoByMenuId(long menuId);
        SysUserDto loadUserByUsername(string username, string password);
        SysUserDto loadUserByUsername(string username);
        List<string> getUserAuthority(long userId);
    }
}
